<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			.active{
				font-size: 22px;
				color: brown;
			}
			.static{
				font-style: italic;
			}
			.Error{
				background-color: red;
			}
		</style>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<div class="static" :class="{'activ@e':'isActive','Error':'isError'}">我是动态的</div>
		</div>
		<script type="text/javascript">
			var app=new Vue(
			{
				el:'#app',
				data:{
					isActive:true,
					isError:true
				}
			});
		</script>
	</body>
</html>